package homework.homework_5.logistics;

/**
 * @author 朱
 * @date 201903269:54
 */
public class Express {
    public String number;//单号//
    public double weight;//货物重量//
    public Express(){

    }

    public Express(String number, double weight) {
        this.number = number;
        this.weight = weight;
    }
    public  void sendBefore(){
        System.out.println("订单开始处理");
        System.out.println("快递单号："+number);
        System.out.println("货物重量："+weight);
    }
    public void send(Car car){
        System.out.println("=========");
        System.out.println("运货人"+car.driver+"正驾驶编号为"+car.number+"的"+car.type+"发送货物" );
        car.transport();
    }
    public void sendAfter(Car car){
        System.out.println(car.driver+"已将编号为"+car.number+"的"+car.type+"归还");
        System.out.println("货物运输车保养完毕");
    }
    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }
}
